From 5993875d38ce318c6b391d6dab5182a7400a8bdc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 18 Apr 2016 11:40:10 -0400 Subject: [PATCH] Fix the css style font test Setting the font: shorthand to something like smaller is not in line with the css spec. Just set the font-size: property for this. Also fix the other font: shorthand to specify size and family according to the css spec. --- testsuite/css/style/font.css | 4 ++-- testsuite/css/style/font.nodes | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/testsuite/css/style/font.css b/testsuite/css/style/font.css index 86b2ba08b1..9c99623665 100644 --- a/testsuite/css/style/font.css +++ b/testsuite/css/style/font.css @@ -1,7 +1,7 @@ box { - font: "Comic Sans 10"; + font: 10px "Comic Sans"; } label { - font: smaller; + font-size: smaller; } diff --git a/testsuite/css/style/font.nodes b/testsuite/css/style/font.nodes index 02044b4466..ef23f94007 100644 --- a/testsuite/css/style/font.nodes +++ b/testsuite/css/style/font.nodes @@ -1,12 +1,12 @@ [window.background:dir(ltr)] decoration:dir(ltr) box.horizontal:dir(ltr) - font-size: 10px; /* font.css:2:23 */ - font-family: "\"Comic Sans 10\""; /* font.css:2:23 */ - font-style: normal; /* font.css:2:23 */ - font-variant: normal; /* font.css:2:23 */ - font-weight: normal; /* font.css:2:23 */ - font-stretch: normal; /* font.css:2:23 */ + font-size: 10px; /* font.css:2:25 */ + font-family: "Comic Sans"; /* font.css:2:25 */ + font-style: normal; /* font.css:2:25 */ + font-variant: normal; /* font.css:2:25 */ + font-weight: normal; /* font.css:2:25 */ + font-stretch: normal; /* font.css:2:25 */ label:dir(ltr) font-size: 8.3333333333333339px; /* font.css:6:20 */ -- 2.30.2